<?php

interface BlogPublishable
	{

	public function getPublishableDate();

	public function getAuthor();
	
	}
abstract class AbstractPublishableItem implements BlogPublishable{

public function __construct($date, $author) 
	{
		$this->date=$date;
		$this->author=$author;
	}

public function getDate() 
	{
		return $this->date;
	}

public function getAuthor() 
	{
		return $this->author;
	}

public function setDate($date)
	 {
		$this->date=$date;
	}

public function setAuthor($author)
	 {
		$this->author=$author;
	}

public function getPublishableDate()
	{
		if(is_numeric($this->date)){
			echo("c'est un integer\n");
	}else{
			echo("c'est pas un integer\n");
        }	
}	

}

?>
